<?php

class Application_Form_Listprojet extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	
    	
    	$Nom = new Zend_Form_Element_Text('Nom');
    	$Nom->setRequired(true);
    	$Nom->setLabel('Nom');
    	
    	
    	$datedebut = new Zend_Form_Element_Text('datedebut');
    	$datedebut->setRequired(true);
    	$datedebut->setLabel('Date debut');
    	
    	
    	$datefin = new Zend_Form_Element_Text('datefin');
    	 
    	$datefin->setLabel('Date debut');
    	
    	$cout = new Zend_Form_Element_Text('cout');
    	$cout->setRequired(true);
    	$cout->setLabel('Coût');
    	
    	$coutreel = new Zend_Form_Element_Text('coutreel');
  
    	$coutreel->setLabel('Coût Réel');
    	
    	
    	$etatavancement = new Zend_Form_Element_Text('Etatavancement');
    	$etatavancement->setRequired(true);
    	$etatavancement->setLabel('Etat avancement');
    	
    	$anneeprog = new Zend_Form_Element_Text('anneeprog');
    	$anneeprog->setRequired(true);
    	$anneeprog->setLabel('annee prog');
    	 
    	
    	
    	$desc = new Zend_Form_Element_Textarea('desc');
    	$desc->setRequired(true);
    	$desc->setLabel('discription');
    	
    	
    	$etat = new Zend_Form_Element_Select('etat');
    	$etat->setRequired(true);
    	$etat->setLabel("Etat");
    	$etat->addMultiOption(1,"Nouveau");
    	$etat->addMultiOption(2,"Encours");
    	$etat->addMultiOption(3,"En difficulté");
 
    	
    	
    	
    	
    	$sendBt = new Zend_Form_Element_Submit('submit');
    	$sendBt->setLabel('Enregistrer');
    	 
    	 
    	$this->addElements(array($Nom,$datedebut,$anneeprog,$datefin,$cout,$coutreel,$etatavancement,$etatt,$desc,$sendBt));
    	
    }


}

